.class Lcom/estrongs/android/taskmanager/gz;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->i(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/TabHost;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/TabHost;->getCurrentTab()I

    move-result v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->H(Lcom/estrongs/android/taskmanager/TaskManager;)I

    move-result v0

    if-nez v0, :cond_0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->I(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/taskmanager/a/b;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/a/b;->a()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Lcom/estrongs/android/taskmanager/TaskManager;Ljava/util/ArrayList;)V

    :goto_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.estrongs.android.taskmanager.ACTION_LOAD_FINISH"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->sendBroadcast(Landroid/content/Intent;)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->N(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/taskmanager/a/d;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/a/d;->a()Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gz;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Lcom/estrongs/android/taskmanager/TaskManager;Ljava/util/ArrayList;)V

    goto :goto_0
.end method
